import request from '@/utils/request'
import service from '@/api/config/const'
import { paramToString } from '@/utils/param'

const baseUrl = '/upmsUserOrganization/batch'

/**
 * 添加组织和用户的关系
 * @param pojo
 * @returns {*}
 */
export function add(pojo) {
  return request.post(service.upms + baseUrl, paramToString(pojo))
}

/**
 * 根据id删除多个
 * @param ids
 * @returns {boolean|*}
 */
export function deleteByIds(data) {
  return request.delete(service.upms + baseUrl + '?' + paramToString(data))
}

